﻿using Cl.Entity.BaseEntity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Entity.DataBaseEntity.System
{
    [SugarTable("System_OperationLog")]
    public class OperationLog : EntityBaseComplete
    {
        public int UserId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string? Account { get; set; }

        public string? IpAddress { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public string? DeviceType { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        public string? OperatingSystem { get; set; }


        /// <summary>
        /// 操作接口名称
        /// </summary>
        public string? OperatingApiName { get; set; }

        /// <summary>
        /// 操作接口路由
        /// </summary>
        public string? OperatingApi { get; set; }
        /// <summary>
        /// 耗时（ms）
        /// </summary>
        public string? ElapsedTime_ms { get; set; }

        /// <summary>
        /// 操作状态
        /// </summary>
        public bool OperatingStatus { get; set; }

        /// <summary>
        /// 操作信息
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)")]
        public string? OperatingMsg { get; set; }
    }
}
